package com.example.jdshopdeail.adapter;

import android.widget.ImageView;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.jdshopdeail.R;
import com.example.jdshopdeail.util.GlideUtils;

import java.util.List;

/**
 * @author: njb
 * @date: 2020/3/24 0024 21:40
 * @desc: 宝贝详情适配器
 */
public class BodyDetailAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
    public BodyDetailAdapter(@Nullable List<String> data) {
        super(R.layout.item_detail,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {
        GlideUtils.loadImg(mContext, item, (ImageView) helper.getView(R.id.iv_detail));
    }
}
